package com.myapp.ruyixing.http;

import org.json.JSONObject;

public class ScoreOrderParser extends RYJSONParser {

	@Override
	public Object parse(JSONObject jsonObject) {
		if (getErrno(jsonObject) != NO_ERROR) {
			return null;
		}

		JSONObject data = jsonObject.optJSONObject("data");
		
		ScoreOrder o = new ScoreOrder();

		if (jsonObject != null) {
			o = loadByGson(data, ScoreOrder.class);
		}

		return o;
	}
	
	public static class ScoreOrder {
		public String goodsid;
		public String mempoints;
		public String goodspinots;
		public String shopname;
		public String thumb;
		public String username;
		public String sex;
		public String phone;
	}
}
